package com.example.lcpractice.datastructure;

/**
 * @author hd
 * @date 2022/2/25 10:42
 */
public class LinkedList {

    public static ListNode getLinkedList() {
        final ListNode head = new ListNode(1);
        final ListNode second = new ListNode(2);
        final ListNode third = new ListNode(3);
        head.setNext(second);
        second.setNext(third);
        return head;
    }
}
